package com.wzy.spring2.interceptor;

import com.wzy.spring2.service.AccountStoreService;
import com.wzy.tools.utils.JSON;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: weizhengyun
 * @time: 2023/1/14-23:03
 **/

@Component
@Slf4j
public class ShutUpProcess implements DisposableBean {

    @Override
    public void destroy() throws Exception {
        log.info("[stop] ShutUpProcess. accountMap = {}", JSON.toJSONString(AccountStoreService.accountMap));

    }
}
